
;
//小轮播图
 $(function () {
    var settimes;//定时器
    var $div = $(".con2r");

    //方法
    function show(nature) {
        var scrolll = nature.find("ul:first");
        var lineHeight = scrolll.find("li:first").height();
        // console.log(lineHeight)
        scrolll.animate({"margin-top": -lineHeight + "px"}, 800, function () {
            scrolll.css({'margin-top':0}).find("li:first").appendTo(scrolll);
        });
    }

    settimes = setInterval(function () {
        show($div);
    }, 2000);
      //悬停事件
      $div.hover(function () {
          clearInterval(settimes);//清楚定时器
      }, function () {
          clearInterval(settimes)
          settimes = setInterval(function () {
              show($div);
          }, 2000);
      })
});